package com.jurenzhao.partssystem.information.basic_model.service;

import com.jurenzhao.partssystem.information.basic_model.dao.BasicModelMapper;
import com.jurenzhao.partssystem.information.basic_model.entity.BasicModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BasicModelService {
    @Resource
    private BasicModelMapper basicModelMapper;

    public List<BasicModel> findModelBySeriesId(int id){
        return basicModelMapper.findModelBySeriesId(id);
    }

    public List<BasicModel> findAll(){
        return basicModelMapper.findAll();
    };
}
